package com.bootlever.framework.redis.templates;

import org.redisson.api.RedissonClient;
import redis.clients.jedis.JedisCommands;

public class RedisTemplate {

    private JedisCommands jedis;

    private RedissonClient redissonClient;

    void setJedis(JedisCommands jedis) {
        this.jedis = jedis;
    }

    public JedisCommands commands(){
        return this.jedis;
    }

    void setRedissonClient(RedissonClient redissonClient) {
        this.redissonClient = redissonClient;
    }
    public RedissonClient redisson(){
        return this.redissonClient;
    }
}
